<?php 
namespace app\index\validate;
use think\Validate;

class Message extends Validate
{
	protected $rule = [
	'title' => 'require|max:30',
	'content' => 'require',

	];

	protected $message = [
	'title.require' => '标题不可以为空哦',
	'title.max' => '标题字数不要超过30个字符',
	'content.require' => '消息内容不能为空!!!',

	];

}